from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app

class MainPage(webapp.RequestHandler):
    def get(self, page):
            if page == '':
                page = 'main';
            page = 'template/' + page + '.html';
            values = {}
            self.response.out.write(template.render(page, values))

application = webapp.WSGIApplication([('/([a-zA-Z0-9]*)', MainPage)],debug=True)

def main():
    run_wsgi_app(application)

if __name__ == '__main__':
    main()